package priv.yangguolong.Chapter06;
/**
 * This program demonstrates cloning 
 * @author Administrator
 *
 */
public class CloneTest {
public static void main(String[] args) {
	try {
		Employee02 original = new Employee02("John Q.Public",50000);
		original.setHireDay(2000,1,1);
		Employee02 copy = original.clone();
		System.out.println("original="+original);
		System.out.println("copy="+copy);
	}catch(CloneNotSupportedException e) {
		e.printStackTrace();
	}
}
}
